﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;
using DTO;

namespace BLL
{
    public class DICHVUBUS
    {
        public static DataTable GetListBC()
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.GetListDV();
        }
        public static List<DICHVU> GetListBCs()
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.GetListDVs();
        }
		public static DICHVU GetDVByID(DICHVU dv)
		{
			DICHVUDAO b = new DICHVUDAO();
			return b.GetDVByID(dv);
		}
        public static DataTable Find(DICHVU dv)
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.Find(dv);
        }
        public static List<DICHVU> Finds(DICHVU dv)
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.Finds(dv);
        }
        public static String CreateNewID()
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.CreatenewId();
        }
        public static bool INSERT(DICHVU bc)
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.INSERT(bc);
        }
        public static bool UPDATE(DICHVU bc)
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.UPDATE(bc);
        }
        public static bool DELETE(DICHVU bc)
        {
            DICHVUDAO b = new DICHVUDAO();
            return b.DELETE(bc);
        }
    }
}
